import { createWebHashHistory, createRouter } from 'vue-router'
/**
 * isTabbar 是否显示底部菜单栏 true显示 false不显示
 */

const routes = [{
        path: "/",
        name: "index",
        meta: {
            title: "未来医生",
            isTabbar: false
        },
        component: () =>
            import ("@/components/Index.vue")
    },
    // 医生端
    {
        path: "/home",
        name: "home",
        meta: {
            title: "医联体看板",
            isTabbar: true
        },
        component: () =>
            import ("@/pages/home/doctor_home.vue")
    },
    // 患者端
    {
        path: "/patientHome",
        name: "patientHome",
        meta: {
            title: "首页",
            isTabbar: true
        },
        component: () =>
            import ("@/pages/home/patient_home.vue")
    },
    // 医生端
    {
        path: "/doctorDataAnalysis",
        name: "doctorDataAnalysis",
        meta: {
            title: "数据分析",
            isTabbar: true
        },
        component: () =>
            import ("@/pages/dataAnalysis/doctorData.vue")
    },
    // 患者端
    {
        path: "/patientDataAnalysis",
        name: "patientDataAnalysis",
        meta: {
            title: "数据分析",
            isTabbar: true
        },
        component: () =>
            import ("@/pages/dataAnalysis/patientData.vue")
    },
    // 医生端
    {
        path: "/doctorPerson",
        name: "doctorPerson",
        meta: {
            title: "我的",
            isTabbar: true
        },
        component: () =>
            import ("@/pages/person/doctorPerson.vue")
    },
    // 患者端
    {
        path: "/patientPerson",
        name: "patientPerson",
        meta: {
            title: "我的",
            isTabbar: true
        },
        component: () =>
            import ("@/pages/person/patientPerson.vue")
    },
    {
        path: "/process",
        name: "process",
        meta: {
            title: "全流程面板",
            isTabbar: false
        },
        component: () =>
            import ("@/components/Process.vue")
    },
    {
        path: "/hospitalInfo",
        name: "hospital",
        meta: {
            title: "入院基本信息",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/process/common_process_1.vue")
    },
    {
        path: "/addReport",
        name: "addReport",
        meta: {
            title: "添加报告",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/home/addReport.vue")
    },
    {
        path: "/mindReview",
        name: "mindReview",
        meta: {
            title: "心里评测",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/process/common_process_2.vue")
    },
    {
        path: "/hlplan",
        name: "hlplan",
        meta: {
            title: "化疗方案",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/process/common_process_3.vue")
    },
    // 医生端
    {
        path: "/zlwork",
        name: "zlwork",
        meta: {
            title: "实施化疗方案",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/process/doctor_process_4.vue")
    },
    // 患者端
    {
        path: "/patient",
        name: "patient",
        meta: {
            title: "实施化疗方案",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/process/patient_process_4.vue")
    },
    // 医生端
    {
        path: "/fzDoctorWorkbench",
        name: "fzDoctorWorkbench",
        meta: {
            title: "辅助疗护",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/process/doctor_process_5.vue")
    },
    // 患者端
    {
        path: "/fzpatient",
        name: "fzpatient",
        meta: {
            title: "辅助疗护",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/process/patient_process_5.vue")
    },
    {
        path: "/hospitalManage",
        name: "hospitalManage",
        meta: {
            title: "出院及院外管理",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/process/common_process_6.vue")
    },
    {
        path: "/sharePatient",
        name: "sharePatient",
        meta: {
            title: "首页",
            isTabbar: false
        },
        component: () =>
            import ("@/pages/share_patient_home.vue")
    },
]
const router = createRouter({
    linkExactActiveClass: 'active',
    history: createWebHashHistory(),
    routes
});

export default router;
